{
  lib,
  pkgs,
  config,
  ...
}:
let
  self = config.flakeDeclared.lingual.zh_CN;
in
{
  options.flakeDeclared.lingual.zh_CN = {
    enable = lib.mkEnableOption "Chinese (Mainland China) locale";
  };
  config = lib.mkIf self.enable {
    i18n.supportedLocales = [
      "zh_CN.UTF-8/UTF-8"
      "zh_CN.GBK/GBK"
      "zh_CN.GB18030/GB18030"
      "zh_CN/GB2312"
    ];
    fonts.packages = with pkgs; [
      wqy_zenhei
      wqy_microhei
      arphic-ukai
      arphic-uming
      source-han-serif
      source-han-sans
      source-han-mono
      noto-fonts-cjk-serif
      noto-fonts-cjk-sans
    ];
  };
}
